﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Gnosis.Babel;

namespace Gnosis.SQLite.Text
{
    public class Substring
        : TextFunction
    {
        public Substring(IText text, IntegerLiteral start)
            : base("SUBSTR", new List<IExpression> { text, start })
        {
        }

        public Substring(IText text, IntegerLiteral start, IntegerLiteral length)
            : this(text, start)
        {
            AddChild(length);
        }
    }
}
